(function() {
	function k() {
		var b = {
				"&": "&#38;",
				"<": "&#60;",
				">": "&#62;",
				'"': "&#34;",
				"'": "&#39;",
				"/": "&#47;"
			},
			a = /&(?!#?\w+;)|<|>|"|'|\//g;
		return function(e) {
			return e ? e.toString().replace(a, function(a) {
				return b[a] || a
			}) : e
		}
	}

	function l(b, a, e) {
		return (typeof a === "string" ? a : a.toString()).replace(b.define || d, function(a, b, c, d) {
			b.indexOf("def.") === 0 && (b = b.substring(4));
			b in e || (c === ":" ? e[b] = d : eval("def['" + b + "']=" + d));
			return ""
		}).replace(b.use || d, function(a, d) {
			var c = eval(d);
			return c ? l(b, c, e) : c
		})
	}

	function g(b) {
		return b.replace(/\\('|\\)/g,
			"$1").replace(/[\r\t\n]/g, " ")
	}
	var f = {
			version: "0.2.0",
			templateSettings: {
				evaluate: /\{\{([\s\S]+?)\}\}/g,
				interpolate: /\{\{=([\s\S]+?)\}\}/g,
				encode: /\{\{!([\s\S]+?)\}\}/g,
				use: /\{\{#([\s\S]+?)\}\}/g,
				define: /\{\{##\s*([\w\.$]+)\s*(\:|=)([\s\S]+?)#\}\}/g,
				conditional: /\{\{\?(\?)?\s*([\s\S]*?)\s*\}\}/g,
				iterate: /\{\{~\s*(?:\}\}|([\s\S]+?)\s*\:\s*([\w$]+)\s*(?:\:\s*([\w$]+))?\s*\}\})/g,
				varname: "it",
				strip: !0,
				append: !0,
				selfcontained: !1
			},
			template: void 0,
			compile: void 0
		},
		h = function() {
			return this || (0, eval)("this")
		}();
	typeof module !== "undefined" && module.exports ? module.exports = f : typeof define === "function" && define.amd ? define(function() {
		return f
	}) : h.doT = f;
	h.encodeHTML = k();
	var n = {
			append: {
				start: "'+(",
				end: ")+'",
				startencode: "'+encodeHTML("
			},
			split: {
				start: "';out+=(",
				end: ");out+='",
				startencode: "';out+=encodeHTML("
			}
		},
		d = /$^/;
	f.template = function(b, a, e) {
		var a = a || f.templateSettings,
			i = a.append ? n.append : n.split,
			m, c = 0,
			j;
		if (a.use || a.define) {
			var o = h.def;
			h.def = e || {};
			b = l(a, b, h.def);
			h.def = o
		}
		b = ("var out='" + (a.strip ? b.replace(/(^|\r|\n)\t* +| +\t*(\r|\n|$)/g,
			" ").replace(/\r|\n|\t|\/\*[\s\S]*?\*\//g, "") : b).replace(/'|\\/g, "\\$&").replace(a.interpolate || d, function(a, b) {
			return i.start + g(b) + i.end
		}).replace(a.encode || d, function(b, a) {
			m = !0;
			return i.startencode + g(a) + i.end
		}).replace(a.conditional || d, function(a, b, c) {
			return b ? c ? "';}else if(" + g(c) + "){out+='" : "';}else{out+='" : c ? "';if(" + g(c) + "){out+='" : "';}out+='"
		}).replace(a.iterate || d, function(b, a, d, e) {
			if (!a) return "';} } out+='";
			c += 1;
			j = e || "i" + c;
			a = g(a);
			return "';var arr" + c + "=" + a + ";if(arr" + c + "){var " + d + "," + j + "=-1,l" +
				c + "=arr" + c + ".length-1;while(" + j + "<l" + c + "){" + d + "=arr" + c + "[" + j + "+=1];out+='"
		}).replace(a.evaluate || d, function(a, b) {
			return "';" + g(b) + "out+='"
		}) + "';return out;").replace(/\n/g, "\\n").replace(/\t/g, "\\t").replace(/\r/g, "\\r").replace(/(\s|;|}|^|{)out\+='';/g, "$1").replace(/\+''/g, "").replace(/(\s|;|}|^|{)out\+=''\+/g, "$1out+=");
		m && a.selfcontained && (b = "var encodeHTML=(" + k.toString() + "());" + b);
		try {
			return new Function(a.varname, b)
		} catch (p) {
			throw typeof console !== "undefined" && console.log("Could not create a template function: " +
				b), p;
		}
	};
	f.compile = function(b, a) {
		return f.template(b, null, a)
	}
})();
var JSON;
JSON || (JSON = {});
(function() {
	function k(a) {
		return a < 10 ? "0" + a : a
	}

	function o(a) {
		p.lastIndex = 0;
		return p.test(a) ? '"' + a.replace(p, function(a) {
			var c = r[a];
			return typeof c === "string" ? c : "\\u" + ("0000" + a.charCodeAt(0).toString(16)).slice(-4)
		}) + '"' : '"' + a + '"'
	}

	function l(a, j) {
		var c, d, h, m, g = e,
			f, b = j[a];
		b && typeof b === "object" && typeof b.toJSON === "function" && (b = b.toJSON(a));
		typeof i === "function" && (b = i.call(j, a, b));
		switch (typeof b) {
			case "string":
				return o(b);
			case "number":
				return isFinite(b) ? String(b) : "null";
			case "boolean":
			case "null":
				return String(b);
			case "object":
				if (!b) return "null";
				e += n;
				f = [];
				if (Object.prototype.toString.apply(b) === "[object Array]") {
					m = b.length;
					for (c = 0; c < m; c += 1) f[c] = l(c, b) || "null";
					h = f.length === 0 ? "[]" : e ? "[\n" + e + f.join(",\n" + e) + "\n" + g + "]" : "[" + f.join(",") + "]";
					e = g;
					return h
				}
				if (i && typeof i === "object") {
					m = i.length;
					for (c = 0; c < m; c += 1) typeof i[c] === "string" && (d = i[c], (h = l(d, b)) && f.push(o(d) + (e ? ": " : ":") + h))
				} else
					for (d in b) Object.prototype.hasOwnProperty.call(b, d) && (h = l(d, b)) && f.push(o(d) + (e ? ": " : ":") + h);
				h = f.length === 0 ? "{}" : e ? "{\n" + e + f.join(",\n" + e) + "\n" + g + "}" : "{" + f.join(",") +
					"}";
				e = g;
				return h
		}
	}
	if (typeof Date.prototype.toJSON !== "function") Date.prototype.toJSON = function() {
		return isFinite(this.valueOf()) ? this.getUTCFullYear() + "-" + k(this.getUTCMonth() + 1) + "-" + k(this.getUTCDate()) + "T" + k(this.getUTCHours()) + ":" + k(this.getUTCMinutes()) + ":" + k(this.getUTCSeconds()) + "Z" : null
	}, String.prototype.toJSON = Number.prototype.toJSON = Boolean.prototype.toJSON = function() {
		return this.valueOf()
	};
	var q = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
		p = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
		e, n, r = {
			"\u0008": "\\b",
			"\t": "\\t",
			"\n": "\\n",
			"\u000c": "\\f",
			"\r": "\\r",
			'"': '\\"',
			"\\": "\\\\"
		},
		i;
	if (typeof JSON.stringify !== "function") JSON.stringify = function(a, j, c) {
		var d;
		n = e = "";
		if (typeof c === "number")
			for (d = 0; d < c; d += 1) n += " ";
		else typeof c === "string" && (n = c);
		if ((i = j) && typeof j !== "function" && (typeof j !== "object" || typeof j.length !== "number")) throw Error("JSON.stringify");
		return l("", {
			"": a
		})
	};
	if (typeof JSON.parse !== "function") JSON.parse = function(a, e) {
		function c(a, d) {
			var g, f, b = a[d];
			if (b && typeof b === "object")
				for (g in b) Object.prototype.hasOwnProperty.call(b, g) && (f = c(b, g), f !== void 0 ? b[g] = f : delete b[g]);
			return e.call(a, d, b)
		}
		var d, a = String(a);
		q.lastIndex = 0;
		q.test(a) && (a = a.replace(q, function(a) {
			return "\\u" + ("0000" + a.charCodeAt(0).toString(16)).slice(-4)
		}));
		if (/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, "@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
				"]").replace(/(?:^|:|,)(?:\s*\[)+/g, ""))) return d = eval("(" + a + ")"), typeof e === "function" ? c({
			"": d
		}, "") : d;
		throw new SyntaxError("JSON.parse");
	}
})();
! function(a, b, c) {
	b.MGTOOL = {}, a.extend(MGTOOL, {
		byteLength: function(a) {
			var b = a.match(/[^\x00-\x80]/g);
			return a.length + (b ? b.length : 0)
		},
		jsMbSubstr: function(a, b) {
			if (!a || !b) return "";
			var c = 0,
				d = 0,
				e = "",
				f = a.length;
			for (d = 0; f > d; d++) {
				if (c = a.charCodeAt(d) > 255 ? c += 2 : ++c, c > 2 * b) return e;
				e += a.charAt(d)
			}
			return a
		},
		formatMoney: function(a, b, c) {
			if (b = MGTOOL.empty(a) ? "2" : b, MGTOOL.empty(c)) return a.toFixed(b);
			var d = 0 > a ? "-" : "",
				e = parseInt(a = Math.abs(+a || 0).toFixed(b), 10) + "",
				f = (f = e.length) > 3 ? f % 3 : 0;
			return d + (f ? e.substr(0, f) + c : "") + e.substr(f).replace(/(\d{3})(?=\d)/g, "$1" + c) + (b ? "." + Math.abs(a - e).toFixed(b).slice(2) : "")
		}
	}), a.extend(MGTOOL, {
		emptyObj: function(a) {
			for (var b in a) return !1;
			return !0
		},
		empty: function(a) {
			return null == a || 0 === a.length
		},
		objToJson: function(a) {
			return JSON.stringify(a)
		}
	}), a.extend(MGTOOL, {
		setCookie: function(a, b, c) {
			c = c || {}, null === b && (b = "", c.expires = -1);
			var d = "";
			if (c.expires && ("number" == typeof c.expires || c.expires.toUTCString)) {
				var e;
				"number" == typeof c.expires ? (e = new Date, e.setTime(e.getTime() + 864e5 * c.expires)) : e = c.expires, d = "; expires=" + e.toUTCString()
			}
			var f = c.path ? "; path=" + c.path : "",
				g = c.secure ? "; secure" : "",
				h = "";
			c.domain ? h = "; domain=" + c.domain : (h = document.domain.toString().split("."), h = "; domain=." + h[1] + "." + h[2]), document.cookie = [a, "=", encodeURIComponent(b), d, f, h, g].join("")
		},
		getCookie: function(a) {
			var b = document.cookie.match(new RegExp("(^| )" + a + "=([^;]*)(;|$)"));
			return null !== b ? decodeURIComponent(b[2]) : ""
		},
		removeCookie: function(a) {
			MGTOOL.setCookie(a, null, {
				expires: -1
			})
		},
		setCacheCookie: function(b, c, d, e) {
			d = d || {}, null === c && (c = "");
			var f = "undefined" == typeof e ? MGTOOL.getCookie("__mgjuuid") : e;
			a.ajax({
				url: "/collect/uedcookie",
				type: "POST",
				timeout: 6e4,
				data: {
					cookiename: b,
					uuid: f,
					type: "set",
					value: c,
					lifetime: 86400 * d.expires
				},
				dataType: "json",
				success: function(a) {
					"" === a && alert(MGLANG.msgTimeout)
				}
			})
		},
		getCacheCookie: function(b, c) {
			var d = "undefined" == typeof c ? MGTOOL.getCookie("__mgjuuid") : c,
				e = "";
			return a.ajax({
				url: "/collect/uedcookie",
				type: "POST",
				timeout: 6e4,
				async: !1,
				data: {
					cookiename: b,
					uuid: d,
					type: "get"
				},
				dataType: "json",
				success: function(a) {
					{
						var b = a.status.code;
						a.status.msg
					}
					if (1001 == b) {
						var c = a.result.data.value;
						e = c
					} else alert(MGLANG.msgTimeout)
				}
			}), e
		}
	}), a.extend(MGTOOL, {
		getQueryString: function(a, b) {
			b = "undefined" != typeof b ? b : location.href;
			var c = new RegExp("(^|\\?|&)" + a + "=([^&]*)(\\s|&|$)", "i");
			return c.test(b) ? RegExp.$2.replace(/\+/g, " ") : ""
		},
		getPicExtension: function(a) {
			return /(.+)\.(.+)/.exec(a) ? RegExp.$2 : ""
		},
		filterDomain: function(a) {
			var b = /http:\/\/[^\/]+/;
			return a.replace(b, "")
		}
	}), a.extend(MGTOOL, {
		throttleM: {
			isLoading: !1,
			throttoleXhr: function(a, b) {
				var c = this;
				if (!c.isLoading) {
					b = b || 500, c.isLoading = !0;
					var d = a();
					d.complete = function() {
						setTimeout(function() {
							c.isLoading = !1
						}, b)
					}
				}
			}
		}
	}), a.extend(MGTOOL, {
		getMsgLength: function(a) {
			var b = a.length;
			if (b > 0) {
				for (var c = 41, d = 140, e = 24, f = a, g = a.match(/http[s]?:\/\/[a-zA-Z0-9-]+(\.[a-zA-Z0-9]+)+([-A-Z0-9a-z_\$\.\+\!\*\(\)\/\/,:;@&=\?\~\#\%]*)*/gi) || [], h = 0, i = 0, j = g.length; j > i; i++) {
					var k = MGTOOL.byteLength(g[i]);
					/^(http:\/\/mogujie.cn)/.test(g[i]) || (h += /^(http:\/\/)+(mogujie.cn|mogujie.com)/.test(g[i]) ? c >= k ? k : d >= k ? e : k - d + e : d >= k ? e : k - d + e, f = f.replace(g[i], ""))
				}
				return Math.ceil((h + MGTOOL.byteLength(f)) / 2)
			}
			return 0
		},
		getAbsoluteLocation: function(c) {
			if (1 !== arguments.length || null === c) return null;
			var d = a(c),
				e = d.offset(),
				f = e.top,
				g = e.left,
				h = d.height(),
				i = a(b).height(),
				j = a(document).scrollTop(),
				k = f >= j && j + i >= f,
				l = f + h + 200 >= j && j + i >= f - 400;
			return {
				absoluteTop: f,
				absoluteLeft: g,
				isInView: k,
				isLoad: l
			}
		},
		distance2Bottom: function(c) {
			var d = a(document),
				e = a(b),
				f = d.scrollTop(),
				g = e.height(),
				h = d.height();
			return f + g + c >= h
		},
		isParent: function(a, b) {
			for (; a !== c && null !== a && "BODY" != a.tagName.toUpperCase();) {
				if (a == b) return !0;
				a = a.parentNode
			}
			return !1
		},
		template: function(a, b) {
			return doT.template(a)(b)
		},
		log: function(a) {
			b.console !== c && console.log(a)
		},
		dataFormat: function(a, b) {
			var c = {
				"M+": a.getMonth() + 1,
				"d+": a.getDate(),
				"h+": a.getHours(),
				"m+": a.getMinutes(),
				"s+": a.getSeconds(),
				"q+": Math.floor((a.getMonth() + 3) / 3),
				S: a.getMilliseconds()
			};
			/(y+)/.test(b) && (b = b.replace(RegExp.$1, (a.getFullYear() + "").substr(4 - RegExp.$1.length)));
			for (var d in c) new RegExp("(" + d + ")").test(b) && (b = b.replace(RegExp.$1, 1 == RegExp.$1.length ? c[d] : ("00" + c[d]).substr(("" + c[d]).length)));
			return b
		}
	}), a.extend(MGTOOL, {
		trim: function(b) {
			return a.trim(b)
		},
		getRequest: function(a, b) {
			return this.getQueryString(a, b)
		}
	})
}(jQuery, window);
var MOGU = MOGU || {};
! function(a) {
	MOGU.Globe_Textarea_Auto_Height = function(b) {
		var c = b.height(),
			d = function() {
				0 > c && (c = b.height()), (a.browser.mozilla || a.browser.safari) && b.height(c);
				var d = b[0].scrollHeight,
					e = c > d ? c : d;
				e = 1.5 * c > e ? c : d, b.height(e)
			};
		b.bind("keyup", d).bind("input", d).bind("propertychange", d).bind("focus", d)
	}, MOGU.Globe_Goods_URL_Support = function(a) {
		var b = /item(.[\w]+)?.taobao.com\/(.?)[item.htm|item_num_id|item_detail|itemID|item_id|default_item_id]/i,
			c = /detail.tmall/i,
			d = /auction\d?.paipai.com/i,
			e = /buy.caomeipai.com\/goods/i,
			f = /www.360buy.com\/product/i,
			g = /product.dangdang.com\/Product.aspx\?product_id=/i,
			h = /book.360buy.com/i,
			i = /www.vancl.com\/StyleDetail/i,
			j = /www.vancl.com\/Product/i,
			k = /vt.vancl.com\/item/i,
			l = /item.vancl.com\/\d+/i,
			m = /item.vt.vancl.com\/\d+/i,
			n = /(mbaobao.com\/pshow)|(mbaobao.com\/item)/i,
			o = /item.buy.qq.com\/item/i,
			p = /[www|us].topshop.com\/webapp\/wcs\/stores\/servlet\/ProductDisplay/i,
			q = /quwan.com\/goods/i,
			r = /nala.com.cn\/product/i,
			s = /maymay.cn\/pitem/i,
			t = /asos.com/i,
			u = /www.100f1.com\/ProductInfo_/i,
			v = /www.gaojie.com\/product/i,
			w = /a.m.taobao.com\/i/i,
			x = /www.51yugou.com\//i,
			y = /www.1mall.com\//i,
			z = /www.yihaodian.com\//i,
			A = /www.xipin.me\//i,
			B = /www.nuandao.com\//i,
			C = /www.rosebeauty.com.cn\//i,
			D = /www.hmeili.com\//i,
			E = /www.yueji.com\//i,
			F = /www.yougou.com\//i,
			G = /cn.shopbop.com\//i,
			H = /item.jd.com\//i,
			I = /[www|shop].mogujie.com(.*)\/detail/i;
		return b.test(a) || c.test(a) || h.test(a) || f.test(a) || d.test(a) || e.test(a) || g.test(a) || i.test(a) || j.test(a) || k.test(a) || l.test(a) || m.test(a) || n.test(a) || p.test(a) || q.test(a) || r.test(a) || s.test(a) || t.test(a) || u.test(a) || v.test(a) || o.test(a) || w.test(a) || x.test(a) || z.test(a) || A.test(a) || B.test(a) || C.test(a) || D.test(a) || E.test(a) || F.test(a) || y.test(a) || G.test(a) || H.test(a) || I.test(a)
	}, MOGU.Globe_Input_Text = function(b, c) {
		c = c || b.val(), b.focus(function() {
			var b = a(this);
			a.trim(b.val()) == c && b.val(""), b.css("color", "#000")
		}), b.blur(function() {
			var b = a(this);
			"" == a.trim(b.val()) && (b.val(c), b.css("color", "#ccc"))
		})
	}, MOGU.Globe_Input_Text_Hide = function(b) {
		b.focus(function() {
			var b = a(this);
			a.trim(b.val()) == a.trim(b.attr("def-v")) && b.val(""), b.css("color", "#000")
		}), b.blur(function() {
			var b = a(this);
			"" == a.trim(b.val()) && (b.val(b.attr("def-v")), b.css("color", "#ccc"))
		})
	}, MOGU.WB_Word_Count = function(b, c, d) {
		var e = d ? d : 140;
		if (a("#" + b)[0]) {
			var f = function() {
				var d = 0;
				d = c ? MGTOOL.getMsgLength(a("#" + c).val()) : MGTOOL.getMsgLength(a("#" + b).find(".pub_txt").val());
				var f = e - d;
				0 == d ? a("#" + b).find(".word_count").html(e) : d > e ? (a("#" + b).find(".word_count_wrap").html('您已超过<em class="word_count"></em>个字').find(".word_count").html(Math.abs(f)), a("#" + b).find(".word_count_wrap").show(), a("#" + b).find(".word_count").addClass("out")) : (a("#" + b).find(".word_count_wrap").html('还可以输入<em class="word_count"></em>个字').find(".word_count").html(f), a("#" + b).find(".word_count").removeClass("out"))
			};
			c ? a("#" + c).bind("keyup", f).bind("input", f).bind("propertychange", f) : a("#" + b).find(".pub_txt").bind("keyup", f).bind("input", f).bind("propertychange", f)
		}
	}, MOGU.Globe_Range_Input = function(a) {
		if (a[0].createTextRange) {
			var b = a[0].createTextRange();
			b.moveEnd("character", a.val().length), b.moveStart("character", a.val().length), b.select()
		} else a[0].setSelectionRange(a.val().length, a.val().length), a.focus()
	}, MOGU.Globe_Check_Login = function() {
		return "" == MOGUPROFILE.userid ? (MOGU.user_handsome_login_init(), MOGU.user_handsome_login(), !1) : !0
	}, MOGU.Globe_Short_Link_From = function() {
		a(".mg_slink").live("click", function() {
			var b = window.location.toString();
			if (!(b.indexOf("is_qzone=1") >= 0)) {
				var c = this,
					d = c.href,
					e = a(c).attr("s"),
					f = a(c).attr("c");
				"" == f && (f = MOGUPROFILE.userid);
				var g = d,
					h = "";
				h = -1 == d.indexOf("?") ? "?c=" + f + "&s=" + e : "&c=" + f + "&s=" + e, g += h, c.href = g, setTimeout(function() {
					c.href = d
				}, 500)
			}
		})
	}, MOGU.Globe_Short_Link_From(), MOGU.Globe_Bind_Keybord_Submit = function(b, c, d) {
		d = d || "need_focus", "need_focus" == d && (b.focus(function() {
			a("body").unbind("keydown"), a("body").bind("keydown", function(a) {
				a.ctrlKey && 13 == a.keyCode && c.click()
			})
		}), b.blur(function() {
			a("body").unbind("keydown")
		})), "not_need_focus" == d && a(document).bind("keydown", function(b) {
			b.ctrlKey && 13 == b.keyCode && (c.click(), a("body").unbind("keydown"))
		})
	}, MOGU.GLobe_GetObj_Length = function(a) {
		var b, c = 0;
		for (b in a) a.hasOwnProperty(b) && c++;
		return c
	}, MOGU.Empty_Message_Tip = function(a) {
		var b = a ? a : {},
			c = b.pub_obj,
			d = null,
			e = 0;
		d = setInterval(function() {
			e++, 6 == e ? (clearInterval(d), c.focus()) : e % 2 == 0 ? c.addClass("empty_tip") : c.removeClass("empty_tip")
		}, 120)
	}, MOGU.Defult_Post_data = function(b) {
		if (b instanceof jQuery || (b = a(b)), b.hasClass("disable")) return !1;
		b.addClass("disable");
		var c = b.data(),
			d = c.url || "";
		if ("" !== d) {
			var e = function(a) {
				1001 === a.status.code ? window.location.reload() : alert(a.status.msg)
			};
			jQuery.ajax({
				url: d,
				type: "POST",
				dataType: "json",
				data: c,
				complete: function() {
					b.removeClass("disable")
				},
				success: function(a) {
					e(a)
				}
			})
		}
	}, MOGU.Globe_Trace_Log = function(b) {
		var c = log_stat_url_tmp + "&rerefer=" + encodeURIComponent(window.location.href) + "&tracename=" + b;
		a.ajax({
			url: c,
			type: "post",
			dataType: "jsonp",
			jsonpCallback: "logCallBack",
			success: function() {}
		})
	}, a.fn.serializeObject = function() {
		var b = {},
			c = this.serializeArray();
		return a.each(c, function() {
			void 0 !== b[this.name] ? (b[this.name].push || (b[this.name] = [b[this.name]]), b[this.name].push(this.value || "")) : b[this.name] = this.value || ""
		}), b
	}, MOGU.SerializeFormObject = function(a) {
		a.serializeObject()
	}
}(jQuery), $(function() {
		$(document).off("click", ".__trace__").on("click", ".__trace__", function() {
			var a = $(this).attr("data-trace");
			a && MOGU.Globe_Trace_Log(a)
		})
	}),
	function() {
		for (var a, b = function() {}, c = ["assert", "clear", "count", "debug", "dir", "dirxml", "error", "exception", "group", "groupCollapsed", "groupEnd", "info", "log", "markTimeline", "profile", "profileEnd", "table", "time", "timeEnd", "timeStamp", "trace", "warn"], d = c.length, e = window.console = window.console || {}; d--;) a = c[d], e[a] || (e[a] = b)
	}();
! function(a) {
	function b() {
		location.href.indexOf("/note/") > 0 && a("body a").off().live("click", function() {
			var b = a(this);
			b.attr("href").indexOf("t.mogujie.cn") > 0 && a(".if_no_link").size() > 0 && a(".if_no_link").addClass("if_no_link_onc")
		})
	}
	b()
}(jQuery),
function(a) {
	function b(a) {
		var b = a.match(/(http\:\/\/)?[\w\.]+\/[\w\/]+_([\d]+)x([\d]+)\.[a-zA-Z]+/);
		return b ? [b[2], b[3]] : []
	}
	a.each(a(".items p img"), function(c, d) {
		var e = b(a(d).attr("src"));
		e[0] < 878 ? (a(d).attr("width", e[0]), a(d).attr("height", e[1])) : (a(d).attr("width", 878), a(d).attr("height", 878 / e[0] * e[1]))
	})
}(jQuery);
(function(c) {
	c.fn.floatUp = function(b) {
		b = c.extend({}, b || {});
		return this.each(function() {
			$this = c(this);
			var d = $this.height();
			$this.css({
				height: 0,
				opacity: 0
			});
			$this.show();
			var a = $this.position().top;
			MGTOOL.empty($this.data("top")) ? $this.data("top", a) : (a = $this.data("top"), $this.css("top", a));
			$this.animate({
				height: d + "px",
				top: a - d + "px",
				opacity: "1"
			}, b.time || 1E3)
		})
	};
	c.fn.floatDown = function(b) {
		b = c.extend({}, b || {});
		return this.each(function() {
			$this = c(this);
			var d = $this.height(),
				a = $this.position().top;
			MGTOOL.empty($this.data("top")) ?
				$this.data("top", a) : (a = $this.data("top"), $this.css("top", a));
			$this.animate({
				height: "0px",
				top: a + d + "px",
				opacity: "0"
			}, b.time || 1E3, function() {
				$this.remove()
			})
		})
	}
})(jQuery);
! function(a) {
	MGLightBox = function(b) {
		var c = this,
			d = {
				title: "",
				titleLink: "",
				titleLinkText: "",
				lightBoxId: "",
				ajax: !1,
				contentHtml: "",
				scroll: !1,
				isBgClickClose: !0,
				resizeshow: !0,
				closeCallBack: function() {}
			},
			e = null,
			f = '<div id="{id}" class="light_box"><iframe frameborder="0" scrolling="no" class="lb_fix"></iframe>{content}</div>',
			g = '<table class="lb_wrap clearfix r5"><tbody><tr><td><div class="lb_hd">{title}{title_link}<a href="javascript:;" class="lb_close">×</a></div><div class="lb_bd">{body}</div></td></tr></tbody></table>',
			h = '<div class="light_box_fullbg"></div>',
			i = '<table class="lb_info r5"><tbody><tr><td><div class="lb_l">{text}......（<a class="lb_cs" href="javascript:;">取消</a>）</div></td></tr></tbody></table>',
			j = '<table class="lb_info r5"><tbody><tr><td><div class="lb_s">{text}</div></td></tr></tbody></table>',
			k = '<table class="lb_info r5"><tbody><tr><td><div class="lb_f">{text}</div></td></tr></tbody></table>',
			l = a.extend(d, b),
			m = null,
			n = null,
			o = null,
			p = !1,
			q = function() {
				var a = (document.documentElement.scrollTop || document.body.scrollTop) + ((document.documentElement.clientHeight || document.body.clientHeight) - m.height()) / 2,
					b = window.location.toString();
				return 0 > a ? a = 0 : b.indexOf("is_qzone") > 0 && (a /= 6), a
			};
		c.getBoxFrame = function() {
			return m
		}, c.getFrameId = function() {
			return l.lightBoxId
		}, c.getBackground = function() {
			return o
		}, c.close = function() {
			e && e.abort(), m.hide(), l.closeCallBack(), m.remove(), 0 == a(".light_box").size() && o.remove(), a("body").unbind("keydown")
		}, c.hide = function() {
			m.hide(), o.hide(), a("body").unbind("keydown")
		}, c.show = function() {
			m.show(), o.show()
		}, c.resize = function() {
			var b = a(window).width(),
				c = (b - m.width()) / 2,
				d = q();
			if (n.css({
					width: m.width(),
					height: m.height()
				}), a.browser.msie && "6.0" == a.browser.version && o.css("height", document.documentElement.clientHeight || document.body.clientHeight), l.scroll)
				if (a.browser.msie && "6.0" == a.browser.version) m.css({
					left: c,
					top: d
				}).show(), p || a(window).scroll(function() {
					var a = q();
					m.css("top", a)
				});
				else {
					d = ((document.documentElement.clientHeight || document.body.clientHeight) - m.height()) / 2;
					var e = window.location.toString();
					0 > d ? d = 0 : e.indexOf("is_qzone") > 0 && (d /= 6), m.css({
						left: c,
						top: d,
						position: "fixed"
					}).show()
				} else m.css({
				left: c,
				top: d
			}).show()
		}, c.init = function() {
			if ("" != l.lightBoxId) {
				var b = f.replace(/{id}/g, l.lightBoxId).replace(/{content}/, g);
				l.title && "" != l.title && (b = b.replace(/{title}/g, '<span class="lb_title">' + l.title + "</span>")), b = "" != l.titleLinkText ? b.replace(/{title_link}/g, '<span class="lb_lnk">（<a href="' + l.titleLink + '" target="_blank">' + l.titleLinkText + "</a>）</span>") : b.replace(/{title_link}/g, ""), b = l.ajax ? b.replace(/{body}/g, "") : b.replace(/{body}/g, l.contentHtml);
				var d = a(".light_box_fullbg");
				0 == d.size() ? a("body").append(b + h) : (a("body").append(b), d.eq(0).show()), m = a("#" + l.lightBoxId), n = a(".lb_fix"), o = a(".light_box_fullbg"), l.ajax ? c.loading() : (c.resize(), l.resizeshow && a(window).resize(function() {
					m.filter(":visible").length <= 0 || c.resize()
				}), m.find(".lb_close").click(function() {
					c.close()
				})), l.isBgClickClose && a(".light_box_fullbg").click(function() {
					c.close()
				})
			}
		}, c.fadeout = function() {
			e && e.abort(), m.fadeOut(500), o.fadeOut(500, function() {
				c.close()
			})
		}, c.startAjax = function(a) {
			e = a
		}, c.buildContent = function(b) {
			if (0 == m.find(".lb_wrap").size()) {
				var d = g.replace(/{body}/, b);
				l.title && "" != l.title && (d = d.replace(/{title}/g, '<span class="lb_title">' + l.title + "</span>")), d = "" != l.titleLinkText ? d.replace(/{title_link}/g, '<span class="lb_lnk">（<a href="' + l.titleLink + '" target="_blank">' + l.titleLinkText + "</a>）</span>") : d.replace(/{title_link}/g, ""), m.find(".lb_info").after(d).remove(), a("#" + l.lightBoxId + " .lb_close").click(function() {
					c.close()
				})
			} else m.find(".lb_bd").html(b);
			c.resize()
		}, c.success = function(a) {
			var b = j.replace(/{text}/, a);
			m.find(".lb_wrap").after(b).remove(), c.resize(), setTimeout(function() {
				c.fadeout()
			}, 1e3)
		}, c.success_close = function(a, b) {
			var d = j.replace(/{text}/, a);
			m.find(".lb_wrap").after(d).remove(), c.resize();
			var b = b || 1e3;
			setTimeout(function() {
				c.close()
			}, b)
		}, c.fail = function(a, b) {
			var d = k.replace(/{text}/, a);
			m.find(".lb_wrap").after(d).remove(), c.resize();
			var b = b || 2e3;
			setTimeout(function() {
				c.close()
			}, b)
		}, c.loading = function(a) {
			a = a || "请稍后";
			var b = i.replace(/{text}/, a);
			m.find(".lb_wrap").after(b).remove(), c.resize(), m.find(".lb_l .lb_cs").click(function() {
				c.close()
			}), c.resize()
		}
	}
}(jQuery);
var swfobject = function() {
	function e() {
		if (!G) {
			try {
				var e = M.getElementsByTagName("body")[0].appendChild(h("span"));
				e.parentNode.removeChild(e)
			} catch (t) {
				return
			}
			G = !0;
			for (var n = R.length, a = 0; n > a; a++) R[a]()
		}
	}

	function t(e) {
		G ? e() : R[R.length] = e
	}

	function n(e) {
		if (typeof x.addEventListener != L) x.addEventListener("load", e, !1);
		else if (typeof M.addEventListener != L) M.addEventListener("load", e, !1);
		else if (typeof x.attachEvent != L) m(x, "onload", e);
		else if ("function" == typeof x.onload) {
			var t = x.onload;
			x.onload = function() {
				t(), e()
			}
		} else x.onload = e
	}

	function a() {
		P ? i() : r()
	}

	function i() {
		var e = M.getElementsByTagName("body")[0],
			t = h(k);
		t.setAttribute("type", O);
		var n = e.appendChild(t);
		if (n) {
			var a = 0;
			! function() {
				if (typeof n.GetVariable != L) {
					var i = n.GetVariable("$version");
					i && (i = i.split(" ")[1].split(","), X.pv = [parseInt(i[0], 10), parseInt(i[1], 10), parseInt(i[2], 10)])
				} else if (10 > a) return a++, setTimeout(arguments.callee, 10), void 0;
				e.removeChild(t), n = null, r()
			}()
		} else r()
	}

	function r() {
		var e = D.length;
		if (e > 0)
			for (var t = 0; e > t; t++) {
				var n = D[t].id,
					a = D[t].callbackFn,
					i = {
						success: !1,
						id: n
					};
				if (X.pv[0] > 0) {
					var r = y(n);
					if (r)
						if (!g(D[t].swfVersion) || X.wk && X.wk < 312)
							if (D[t].expressInstall && s()) {
								var f = {};
								f.data = D[t].expressInstall, f.width = r.getAttribute("width") || "0", f.height = r.getAttribute("height") || "0", r.getAttribute("class") && (f.styleclass = r.getAttribute("class")), r.getAttribute("align") && (f.align = r.getAttribute("align"));
								for (var d = {}, u = r.getElementsByTagName("param"), p = u.length, v = 0; p > v; v++) "movie" != u[v].getAttribute("name").toLowerCase() && (d[u[v].getAttribute("name")] = u[v].getAttribute("value"));
								l(f, d, n, a)
							} else c(r), a && a(i);
					else b(n, !0), a && (i.success = !0, i.ref = o(n), a(i))
				} else if (b(n, !0), a) {
					var h = o(n);
					h && typeof h.SetVariable != L && (i.success = !0, i.ref = h), a(i)
				}
			}
	}

	function o(e) {
		var t = null,
			n = y(e);
		if (n && "OBJECT" == n.nodeName)
			if (typeof n.SetVariable != L) t = n;
			else {
				var a = n.getElementsByTagName(k)[0];
				a && (t = a)
			}
		return t
	}

	function s() {
		return !J && g("6.0.65") && (X.win || X.mac) && !(X.wk && X.wk < 312)
	}

	function l(e, t, n, a) {
		J = !0, A = a || null, N = {
			success: !1,
			id: n
		};
		var i = y(n);
		if (i) {
			"OBJECT" == i.nodeName ? (E = f(i), S = null) : (E = i, S = n), e.id = F, (typeof e.width == L || !/%$/.test(e.width) && parseInt(e.width, 10) < 310) && (e.width = "310"), (typeof e.height == L || !/%$/.test(e.height) && parseInt(e.height, 10) < 137) && (e.height = "137"), M.title = M.title.slice(0, 47) + " - Flash Player Installation";
			var r = X.ie && X.win ? "ActiveX" : "PlugIn",
				o = "MMredirectURL=" + x.location.toString().replace(/&/g, "%26") + "&MMplayerType=" + r + "&MMdoctitle=" + M.title;
			if (typeof t.flashvars != L ? t.flashvars += "&" + o : t.flashvars = o, X.ie && X.win && 4 != i.readyState) {
				var s = h("div");
				n += "SWFObjectNew", s.setAttribute("id", n), i.parentNode.insertBefore(s, i), i.style.display = "none",
					function() {
						4 == i.readyState ? i.parentNode.removeChild(i) : setTimeout(arguments.callee, 10)
					}()
			}
			d(e, t, n)
		}
	}

	function c(e) {
		if (X.ie && X.win && 4 != e.readyState) {
			var t = h("div");
			e.parentNode.insertBefore(t, e), t.parentNode.replaceChild(f(e), t), e.style.display = "none",
				function() {
					4 == e.readyState ? e.parentNode.removeChild(e) : setTimeout(arguments.callee, 10)
				}()
		} else e.parentNode.replaceChild(f(e), e)
	}

	function f(e) {
		var t = h("div");
		if (X.win && X.ie) t.innerHTML = e.innerHTML;
		else {
			var n = e.getElementsByTagName(k)[0];
			if (n) {
				var a = n.childNodes;
				if (a)
					for (var i = a.length, r = 0; i > r; r++) 1 == a[r].nodeType && "PARAM" == a[r].nodeName || 8 == a[r].nodeType || t.appendChild(a[r].cloneNode(!0))
			}
		}
		return t
	}

	function d(e, t, n) {
		var a, i = y(n);
		if (X.wk && X.wk < 312) return a;
		if (i)
			if (typeof e.id == L && (e.id = n), X.ie && X.win) {
				var r = "";
				for (var o in e) e[o] != Object.prototype[o] && ("data" == o.toLowerCase() ? t.movie = e[o] : "styleclass" == o.toLowerCase() ? r += ' class="' + e[o] + '"' : "classid" != o.toLowerCase() && (r += " " + o + '="' + e[o] + '"'));
				var s = "";
				for (var l in t) t[l] != Object.prototype[l] && (s += '<param name="' + l + '" value="' + t[l] + '" />');
				i.outerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' + r + ">" + s + "</object>", W[W.length] = e.id, a = y(e.id)
			} else {
				var c = h(k);
				c.setAttribute("type", O);
				for (var f in e) e[f] != Object.prototype[f] && ("styleclass" == f.toLowerCase() ? c.setAttribute("class", e[f]) : "classid" != f.toLowerCase() && c.setAttribute(f, e[f]));
				for (var d in t) t[d] != Object.prototype[d] && "movie" != d.toLowerCase() && u(c, d, t[d]);
				i.parentNode.replaceChild(c, i), a = c
			}
		return a
	}

	function u(e, t, n) {
		var a = h("param");
		a.setAttribute("name", t), a.setAttribute("value", n), e.appendChild(a)
	}

	function p(e) {
		var t = y(e);
		t && "OBJECT" == t.nodeName && (X.ie && X.win ? (t.style.display = "none", function() {
			4 == t.readyState ? v(e) : setTimeout(arguments.callee, 10)
		}()) : t.parentNode.removeChild(t))
	}

	function v(e) {
		var t = y(e);
		if (t) {
			for (var n in t) "function" == typeof t[n] && (t[n] = null);
			t.parentNode.removeChild(t)
		}
	}

	function y(e) {
		var t = null;
		try {
			t = M.getElementById(e)
		} catch (n) {}
		return t
	}

	function h(e) {
		return M.createElement(e)
	}

	function m(e, t, n) {
		e.attachEvent(t, n), H[H.length] = [e, t, n]
	}

	function g(e) {
		var t = X.pv,
			n = e.split(".");
		return n[0] = parseInt(n[0], 10), n[1] = parseInt(n[1], 10) || 0, n[2] = parseInt(n[2], 10) || 0, t[0] > n[0] || t[0] == n[0] && t[1] > n[1] || t[0] == n[0] && t[1] == n[1] && t[2] >= n[2] ? !0 : !1
	}

	function w(e, t, n, a) {
		if (!X.ie || !X.mac) {
			var i = M.getElementsByTagName("head")[0];
			if (i) {
				var r = n && "string" == typeof n ? n : "screen";
				if (a && (T = null, I = null), !T || I != r) {
					var o = h("style");
					o.setAttribute("type", "text/css"), o.setAttribute("media", r), T = i.appendChild(o), X.ie && X.win && typeof M.styleSheets != L && M.styleSheets.length > 0 && (T = M.styleSheets[M.styleSheets.length - 1]), I = r
				}
				X.ie && X.win ? T && typeof T.addRule == k && T.addRule(e, t) : T && typeof M.createTextNode != L && T.appendChild(M.createTextNode(e + " {" + t + "}"))
			}
		}
	}

	function b(e, t) {
		if (U) {
			var n = t ? "visible" : "hidden";
			G && y(e) ? y(e).style.visibility = n : w("#" + e, "visibility:" + n)
		}
	}

	function C(e) {
		var t = /[\\\"<>\.;]/,
			n = null != t.exec(e);
		return n && typeof encodeURIComponent != L ? encodeURIComponent(e) : e
	}
	var E, S, A, N, T, I, L = "undefined",
		k = "object",
		j = "Shockwave Flash",
		B = "ShockwaveFlash.ShockwaveFlash",
		O = "application/x-shockwave-flash",
		F = "SWFObjectExprInst",
		$ = "onreadystatechange",
		x = window,
		M = document,
		V = navigator,
		P = !1,
		R = [a],
		D = [],
		W = [],
		H = [],
		G = !1,
		J = !1,
		U = !0,
		X = function() {
			var e = typeof M.getElementById != L && typeof M.getElementsByTagName != L && typeof M.createElement != L,
				t = V.userAgent.toLowerCase(),
				n = V.platform.toLowerCase(),
				a = n ? /win/.test(n) : /win/.test(t),
				i = n ? /mac/.test(n) : /mac/.test(t),
				r = /webkit/.test(t) ? parseFloat(t.replace(/^.*webkit\/(\d+(\.\d+)?).*$/, "$1")) : !1,
				o = !1,
				s = [0, 0, 0],
				l = null;
			if (typeof V.plugins != L && typeof V.plugins[j] == k) l = V.plugins[j].description, !l || typeof V.mimeTypes != L && V.mimeTypes[O] && !V.mimeTypes[O].enabledPlugin || (P = !0, o = !1, l = l.replace(/^.*\s+(\S+\s+\S+$)/, "$1"), s[0] = parseInt(l.replace(/^(.*)\..*$/, "$1"), 10), s[1] = parseInt(l.replace(/^.*\.(.*)\s.*$/, "$1"), 10), s[2] = /[a-zA-Z]/.test(l) ? parseInt(l.replace(/^.*[a-zA-Z]+(.*)$/, "$1"), 10) : 0);
			else if (typeof x.ActiveXObject != L) try {
				var c = new ActiveXObject(B);
				c && (l = c.GetVariable("$version"), l && (o = !0, l = l.split(" ")[1].split(","), s = [parseInt(l[0], 10), parseInt(l[1], 10), parseInt(l[2], 10)]))
			} catch (f) {}
			return {
				w3: e,
				pv: s,
				wk: r,
				ie: o,
				win: a,
				mac: i
			}
		}();
	return function() {
			X.w3 && ((typeof M.readyState != L && "complete" == M.readyState || typeof M.readyState == L && (M.getElementsByTagName("body")[0] || M.body)) && e(), G || (typeof M.addEventListener != L && M.addEventListener("DOMContentLoaded", e, !1), X.ie && X.win && (M.attachEvent($, function() {
				"complete" == M.readyState && (M.detachEvent($, arguments.callee), e())
			}), x == top && function() {
				if (!G) {
					try {
						M.documentElement.doScroll("left")
					} catch (t) {
						return setTimeout(arguments.callee, 0), void 0
					}
					e()
				}
			}()), X.wk && function() {
				return G ? void 0 : /loaded|complete/.test(M.readyState) ? (e(), void 0) : (setTimeout(arguments.callee, 0), void 0)
			}(), n(e)))
		}(),
		function() {
			X.ie && X.win && window.attachEvent("onunload", function() {
				for (var e = H.length, t = 0; e > t; t++) H[t][0].detachEvent(H[t][1], H[t][2]);
				for (var n = W.length, a = 0; n > a; a++) p(W[a]);
				for (var i in X) X[i] = null;
				X = null;
				for (var r in swfobject) swfobject[r] = null;
				swfobject = null
			})
		}(), {
			registerObject: function(e, t, n, a) {
				if (X.w3 && e && t) {
					var i = {};
					i.id = e, i.swfVersion = t, i.expressInstall = n, i.callbackFn = a, D[D.length] = i, b(e, !1)
				} else a && a({
					success: !1,
					id: e
				})
			},
			getObjectById: function(e) {
				return X.w3 ? o(e) : void 0
			},
			embedSWF: function(e, n, a, i, r, o, c, f, u, p) {
				var v = {
					success: !1,
					id: n
				};
				X.w3 && !(X.wk && X.wk < 312) && e && n && a && i && r ? (b(n, !1), t(function() {
					a += "", i += "";
					var t = {};
					if (u && typeof u === k)
						for (var y in u) t[y] = u[y];
					t.data = e, t.width = a, t.height = i;
					var h = {};
					if (f && typeof f === k)
						for (var m in f) h[m] = f[m];
					if (c && typeof c === k)
						for (var w in c) typeof h.flashvars != L ? h.flashvars += "&" + w + "=" + c[w] : h.flashvars = w + "=" + c[w];
					if (g(r)) {
						var C = d(t, h, n);
						t.id == n && b(n, !0), v.success = !0, v.ref = C
					} else {
						if (o && s()) return t.data = o, l(t, h, n, p), void 0;
						b(n, !0)
					}
					p && p(v)
				})) : p && p(v)
			},
			switchOffAutoHideShow: function() {
				U = !1
			},
			ua: X,
			getFlashPlayerVersion: function() {
				return {
					major: X.pv[0],
					minor: X.pv[1],
					release: X.pv[2]
				}
			},
			hasFlashPlayerVersion: g,
			createSWF: function(e, t, n) {
				return X.w3 ? d(e, t, n) : void 0
			},
			showExpressInstall: function(e, t, n, a) {
				X.w3 && s() && l(e, t, n, a)
			},
			removeSWF: function(e) {
				X.w3 && p(e)
			},
			createCSS: function(e, t, n, a) {
				X.w3 && w(e, t, n, a)
			},
			addDomLoadEvent: t,
			addLoadEvent: n,
			getQueryParamValue: function(e) {
				var t = M.location.search || M.location.hash;
				if (t) {
					if (/\?/.test(t) && (t = t.split("?")[1]), null == e) return C(t);
					for (var n = t.split("&"), a = 0; a < n.length; a++)
						if (n[a].substring(0, n[a].indexOf("=")) == e) return C(n[a].substring(n[a].indexOf("=") + 1))
				}
				return ""
			},
			expressInstallCallback: function() {
				if (J) {
					var e = y(F);
					e && E && (e.parentNode.replaceChild(E, e), S && (b(S, !0), X.ie && X.win && (E.style.display = "block")), A && A(N)), J = !1
				}
			}
		}
}();
var imio = function(t, o, e, n, i) {
	function a(t) {
		this.e_pre = "imio:", this.data = {
			connectionStatus: !1,
			connectionType: null,
			service: ""
		}, this.config = e.extend({
			connectMethod: ["serviceHost", "ajaxServiceHost", "ajaxServiceBakHost"],
			socketSwf: MOGUPROFILE.cdnHost + "/dist/swf/push.v1.swf",
			serviceHost: "122.225.67.108:101.68.210.108:8808",
			ajaxServiceHost: "http://122.225.67.108:80",
			ajaxServiceBakHost: "http://101.68.210.108:80",
			timestamp: +new Date
		}, t)
	}
	var c = function(t) {
		if ("object" != typeof t) return null;
		var o, e = parseInt(100 * Math.random(), 10) + 100,
			n = "",
			i = 0;
		for (var a in t) n += t[a];
		o = n.split("");
		for (var c = 0, s = o.length; s > c; c++) i += o[c].charCodeAt();
		return t._n = e, t._p = i % e, t
	};
	return a.prototype.emit = function(t) {
		return this.uinfo = e.extend({
			uid: "",
			uuid: "",
			token: ""
		}, t), this.uinfo.uid ? window.__MgjCinfoOn ? void this.connectSvr() : !1 : void 0
	}, a.prototype.on = function(t, n) {
		e(o).on(this.e_pre + t, function(t, o) {
			n && n(o)
		})
	}, a.prototype.trigger = function(t, n) {
		e(o).trigger(this.e_pre + t, [n])
	}, a.prototype.connectSvr = function() {
		var t = this,
			o = t.config.connectMethod,
			e = {
				serviceHost: "flash",
				ajaxServiceHost: "ajax",
				ajaxServiceBakHost: "ajax"
			},
			i = n.getFlashPlayerVersion();
		if (void 0 === i || 0 === i.major)
			for (var a = 0, c = o.length; c > a; a++)
				if ("serviceHost" === o[a]) {
					o.splice(a, 1);
					break
				}
		var s = 0;
		! function r(n) {
			var i = t.data.connectionStatus;
			if (!i && n) t.data.service = t.config[n], t.data.connectionType = e[n], t.start(e[n]);
			else if (!i && void 0 === n) return t.trigger("loading:status", "timeout"), void clearTimeout(s);
			s = setTimeout(function() {
				var e = o.shift();
				t.data.connectionStatus || (r(e), e && t.trigger("loading:status", "reconnect"))
			}, 1e4)
		}(o.shift())
	}, a.prototype.httpConnect = function() {
		e("#imioflashobj").remove();
		var t = this,
			o = {
				uid: t.uinfo.uid,
				token: t.uinfo.token,
				status: 1
			};
		o = c(o), e.ajax({
			url: t.data.service + "/push/login",
			data: o,
			dataType: "jsonp",
			timeout: 9e3,
			success: function(o) {
				if (o && 1001 === o.status.code) {
					if (t.data.connectionStatus) return;
					t.uinfo.uuid = o.result.uuid, t.call(encodeURIComponent('{"code":1001,"type":"_imioLoginCB"}')), t.startPoll(), t.autoToken(), t.send("getUnReadCounter")
				}
			}
		})
	}, a.prototype.flashConnect = function() {
		var t = this,
			o = e("#imioflashobj");
		o.length <= 0 && (o = e('<span id="imioflashobj"></span>'), e("body").append(o));
		var i = t.config,
			a = e.extend({
				serverList: i.serviceHost
			}, t.uinfo),
			c = {
				wmode: "transplate",
				allowscriptaccess: "always"
			},
			s = {
				id: "imioflashobj",
				name: "imioflashobj"
			};
		window._imioSocket = {
			call: function(o) {
				t.connectionStatus || t.autoToken(), t.call(o)
			}
		}, n.embedSWF(t.config.socketSwf + "?_=" + t.config.timestamp, "imioflashobj", "0", "0", "9.0.0", "", a, c, s)
	}, a.prototype.start = function(t) {
		"flash" === t ? this.flashConnect() : "ajax" === t && this.httpConnect()
	}, a.prototype.startPoll = function() {
		var t = this,
			o = (t.config, t.uinfo);
		! function n() {
			e.ajax({
				url: t.data.service + "/push/poll",
				data: {
					uid: o.uid,
					uuid: o.uuid,
					token: o.token,
					type: "poll"
				},
				type: "GET",
				dataType: "jsonp",
				timeout: 5e4,
				success: function(o) {
					return null === o || (t.call(encodeURIComponent(i.stringify(o))), "errorCode" !== o.type || 4011 !== o.data && 4002 !== o.data && 4005 !== o.data && 4444 !== o.data) ? void n() : void t.showNotice(o.data)
				},
				error: function() {
					t.showNotice(6002)
				}
			})
		}()
	}, a.prototype.autoToken = function() {
		var t = this;
		t.startAutoToken || (! function o() {
			setTimeout(function() {
				e.ajax({
					url: "http://www.mogujie.com/mtalk/iauth",
					type: "GET",
					data: null,
					dataType: "jsonp",
					success: function(e) {
						e && e.status && 1001 === e.status.code && (t.uinfo.token = e.result.token, o())
					}
				})
			}, 36e5)
		}(), t.startAutoToken = !0)
	}, a.prototype.showNotice = function(t) {
		t += "";
		var o = {
			4004: "消息发送超时",
			6000: "网络连接出错",
			6001: "您不能和对方对话",
			10001: "抱歉！没有客服在线",
			4002: "参数错误，请重新登录",
			4003: "您已断开连接，请重新登录",
			4005: "用户校验失败，请重新登陆",
			4011: "您已在其他地方上线，请重新打开",
			4444: "您已经离线，请重新打开",
			6002: "连接失败，请重新打开"
		};
		this.trigger("notice:show", {
			code: +t,
			msg: void 0 === o[t] ? "未知错误[" + t + "]" : o[t]
		})
	}, a.prototype.call = function(t) {
		t = i.parse(decodeURIComponent(t));
		var o = this;
		if (t && 1001 === t.code) switch (t.type) {
			case "_imioLoginCB":
				o.data.connectionStatus = !0;
				break;
			case "_imioSocket":
				o.trigger("data:update", t.data)
		}
	}, a.prototype.send = function(t, o) {
		o = encodeURIComponent(i.stringify(o));
		var n = this;
		if ("flash" === n.data.connectionType) {
			var a = e("#imioflashobj")[0];
			if (!a) return;
			return void
			function c(t, o) {
				n.data.connectionStatus ? a[t](o) : "flash" === n.data.connectionType && setTimeout(function() {
					c(t, o)
				}, 100)
			}(t, o)
		}
		return "ajax" === n.data.connectionType ? void
		function(t, o) {
			var a = {
				uid: n.uinfo.uid,
				uuid: n.uinfo.uuid,
				token: n.uinfo.token,
				type: t
			};
			void 0 !== o && (a.data = decodeURIComponent(o)), e.ajax({
				url: n.data.service + "/push/request",
				data: a,
				type: "GET",
				dataType: "jsonp",
				success: function(t) {
					t && t.data ? n.call(encodeURIComponent(i.stringify(t))) : t && 4003 === t.code && n.showNotice(4003)
				},
				error: function() {
					n.showNotice(6002)
				}
			})
		}(t, o): void 0
	}, {
		connect: function(t) {
			return new a(t)
		}
	}
}(window, document, jQuery, swfobject, JSON);
! function(e, i, t, o) {
	var n = "undefined" != typeof e.MOGU ? e.MOGU : {},
		d = "undefined" != typeof e.MOGUPROFILE ? e.MOGUPROFILE : {},
		u = "undefined" != typeof e.MGTOOL ? e.MGTOOL : {};
	if (void 0 != d && void 0 != d.userid && "" != d.userid) {
		var a = t("head").find("link"),
			s = a.eq(a.length - 1).attr("href"),
			r = +new Date;
		"string" == typeof s && s.indexOf("$") > 0 && (!window.ActiveXObject || window.XMLHttpRequest) && (r = s.split("$")[1].split(".")[0]),
			function() {
				var e, i = d.userid,
					a = d.push_token,
					s = d.push_serviceHost,
					f = d.push_ajaxServiceHost,
					c = d.push_ajaxServiceBakHost;
				e = o.connect({
					serviceHost: s,
					ajaxServiceHost: f,
					ajaxServiceBakHost: c,
					timestamp: r
				}), e.on("data:update", function(e) {
					n.cinfo = e, t("body").trigger("cinfodatarecieve", [e])
				}), e.emit({
					uid: i,
					token: a,
					uuid: u.getCookie("__mgjuuid"),
					mgj: u.getCookie("__ud_"),
					fromsite: u.getCookie("from_site")
				})
			}()
	}
}(window, document, jQuery, window.imio);
(function(g) {
	var a = {},
		e = g.document,
		c;
	a.disabled = !1;
	a.set = function() {};
	a.get = function() {};
	a.remove = function() {};
	a.clear = function() {};
	a.transact = function(d, b, i) {
		var c = a.get(d);
		i == null && (i = b, b = null);
		typeof c == "undefined" && (c = b || {});
		i(c);
		a.set(d, c)
	};
	a.getAll = function() {};
	a.serialize = function(a) {
		return JSON.stringify(a)
	};
	a.deserialize = function(a) {
		if (typeof a == "string") try {
			return JSON.parse(a)
		} catch (b) {
			return a || void 0
		}
	};
	var k;
	try {
		k = "localStorage" in g && g.localStorage
	} catch (l) {
		k = !1
	}
	if (k) c = g.localStorage,
		a.set = function(d, b) {
			if (b === void 0) return a.remove(d);
			c.setItem(d, a.serialize(b));
			return b
		}, a.get = function(d) {
			return a.deserialize(c.getItem(d))
		}, a.remove = function(a) {
			c.removeItem(a)
		}, a.clear = function() {
			c.clear()
		}, a.getAll = function() {
			for (var d = {}, b = 0; b < c.length; ++b) {
				var i = c.key(b);
				d[i] = a.get(i)
			}
			return d
		};
	else if (e.documentElement.addBehavior) {
		var f, h;
		try {
			h = new ActiveXObject("htmlfile"), h.open(), h.write('<script>document.w=window<\/script><iframe src="/favicon.ico"></iframe>'), h.close(), f = h.w.frames[0].document,
				c = f.createElement("div")
		} catch (m) {
			c = e.createElement("div"), f = e.body
		}
		var e = function(d) {
				return function() {
					var b = Array.prototype.slice.call(arguments, 0);
					b.unshift(c);
					f.appendChild(c);
					c.addBehavior("#default#userData");
					c.load("localStorage");
					b = d.apply(a, b);
					f.removeChild(c);
					return b
				}
			},
			j = RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]", "g");
		a.set = e(function(d, b, c) {
			b = b.replace(j, "___");
			if (c === void 0) return a.remove(b);
			d.setAttribute(b, a.serialize(c));
			d.save("localStorage");
			return c
		});
		a.get = e(function(d, b) {
			b =
				b.replace(j, "___");
			return a.deserialize(d.getAttribute(b))
		});
		a.remove = e(function(a, b) {
			b = b.replace(j, "___");
			a.removeAttribute(b);
			a.save("localStorage")
		});
		a.clear = e(function(a) {
			var b = a.XMLDocument.documentElement.attributes;
			a.load("localStorage");
			for (var c = 0, e; e = b[c]; c++) a.removeAttribute(e.name);
			a.save("localStorage")
		});
		a.getAll = e(function(c) {
			for (var b = c.XMLDocument.documentElement.attributes, e = {}, g = 0, f; f = b[g]; ++g) {
				var h = f.name.replace(j, "___");
				e[f.name] = a.deserialize(c.getAttribute(h))
			}
			return e
		})
	}
	try {
		a.set("__storejs__",
			"__storejs__");
		if (a.get("__storejs__") != "__storejs__") a.disabled = !0;
		a.remove("__storejs__")
	} catch (n) {
		a.disabled = !0
	}
	a.enabled = !a.disabled;
	typeof module != "undefined" && module.exports ? module.exports = a : typeof define === "function" && define.amd ? define(a) : g.store = a
})(this.window || global);
! function(a) {
	MOGU.Globe_Back_To_Top_Init = function() {
		if (a(".back2top_ex").length > 0) {
			var b = a(".back2top_ex"),
				c = a("#body").width() || 960;
			a(".wrap").length > 0 && (c = a(".wrap").width());
			var d = a(window).width() - c;
			80 > d / 2 ? b.addClass("back2top_ex_960") : b.css("margin-left", c / 2 + 10), b.show();
			var e = a(".back2top_ex .b_img");
			a(window).scroll(function() {
				f(e)
			})
		}
		var f = function(b) {
			var c = !1;
			c && clearTimeout(c), c = setTimeout(function() {
				0 === a(window).scrollTop() ? b.fadeOut(200) : b.fadeIn(200)
			}, 200), b.live("click", function() {
				a(window).scrollTop(0)
			})
		}
	}
}(jQuery),
function() {
	MGTOOL.filterDomain(location.href);
	MOGU.Globe_Back_To_Top_Init()
}(jQuery);
! function(e) {
	var a = "<style>.vip_level0{background:url(http://s8.mogucdn.com/pic/140910/level_ieydmojxg43tcnrtmmytambqgiyde_269x337.png) 2px 127px}.vip_level1{background:url(http://s8.mogucdn.com/pic/140910/level_ieydmojxg43tcnrtmmytambqgiyde_269x337.png) 2px 104px}.vip_level2{background:url(http://s8.mogucdn.com/pic/140910/level_ieydmojxg43tcnrtmmytambqgiyde_269x337.png) 2px 81px}.vip_level3{background:url(http://s8.mogucdn.com/pic/140910/level_ieydmojxg43tcnrtmmytambqgiyde_269x337.png) 2px 59px}.vip_level4{background:url(http://s8.mogucdn.com/pic/140910/level_ieydmojxg43tcnrtmmytambqgiyde_269x337.png) 2px 36px}.vip_level5{background:url(http://s8.mogucdn.com/pic/140910/level_ieydmojxg43tcnrtmmytambqgiyde_269x337.png) 2px 14px}.vip_black_level0{background:url(http://s8.mogucdn.com/pic/140910/level_ieydmojxg43tcnrtmmytambqgiyde_269x337.png) -98px 127px}.vip_black_level1{background:url(http://s8.mogucdn.com/pic/140910/level_ieydmojxg43tcnrtmmytambqgiyde_269x337.png) -98px 104px}.vip_black_level2{background:url(http://s8.mogucdn.com/pic/140910/level_ieydmojxg43tcnrtmmytambqgiyde_269x337.png) -98px 81px}.vip_black_level3{background:url(http://s8.mogucdn.com/pic/140910/level_ieydmojxg43tcnrtmmytambqgiyde_269x337.png) -98px 59px}.vip_black_level4{background:url(http://s8.mogucdn.com/pic/140910/level_ieydmojxg43tcnrtmmytambqgiyde_269x337.png) -98px 36px}.vip_black_level5{background:url(http://s8.mogucdn.com/pic/140910/level_ieydmojxg43tcnrtmmytambqgiyde_269x337.png) -98px 14px}</style>";
	e("head").append(a);
	var t = '<div class="tip_info"><a href="/u/{url}" class="fl" ><img class="avatar" src="{avatar}" alt=""></a><div class="info fl"><p><a href="/u/{url}" class="uname" >{name}</a><a href="http://www.mogujie.com/member"><span class="vip_{black}level{level}" style="display: inline-block; position: relative; width: 45px; height: 14px; top: 2px; margin-left: 2px;"></span></a>{bz}{grouplevel}</p><p>{address}</p><p><a href="/u/{userId}/fans" target="_blank"><span>{fans}</span></a>粉丝<a style="margin-left:10px;" href="/u/{userId}/bao" target="_blank"><span>{goods}</span></a>分享<a style="margin-left:10px;" href="/u/{userId}/bao" target="_blank"><span>{faved}</span></a>喜欢</p></div><div class="intro">{intro}</div>{medal}</div><div class="tip_toolbar">{toolbar}</div><div class="tip_arrow"></div>';
	MOGU.Globe_UserInfo_Tip_Init = function() {
		var a = null,
			i = null,
			l = e(".u_name,.icard");
		l.live("mouseenter", function() {
			clearTimeout(a), clearTimeout(i), e("#u_info_tip").hide();
			var l = "";
			if ("img" == this.tagName.toLowerCase() ? l = e(this).attr("alt") : (l = e(this).attr("username"), MGTOOL.empty(l) && (l = e(this).text().replace(/@/g, ""))), "" != l && void 0 != l) {
				l = MGTOOL.trim(l);
				var r = 0;
				"undefined" != typeof MOGUPROFILE.groupId && (r = MGTOOL.trim(MOGUPROFILE.groupId));
				var p = e(this).offset(),
					o = p.left,
					s = 300,
					n = e(this).width(),
					c = n / 2 - 8,
					d = e(window).width();
				o + s > d && (o = o - 300 + n, c = 300 - n / 2 - 8);
				var u = e(this).attr("href");
				(null == u || void 0 == u) && (u = e(this).parent().attr("href"));
				var m = '<div class="tip_info"><img class="avatar r3" src="/img/loading.gif" alt=""><div><p><a href="#">&nbsp;</a></p><p>获取用户信息...</p><p>&nbsp;</p></div></div><div class="tip_toolbar">&nbsp;</div><div class="tip_arrow"></div>';
				e("#u_info_tip")[0] ? e("#u_info_tip").html(m) : e("body").append('<div id="u_info_tip">' + m + "</div>"), e("#u_info_tip").html(m), e("#u_info_tip").css({
					top: p.top - 167 + "px",
					left: o + "px"
				}), e("#u_info_tip .tip_arrow").css("margin-left", c + "px"), a = setTimeout(function() {
					e("#u_info_tip").show()
				}, 200), e("#u_info_tip").hover(function() {
					clearTimeout(a), e("#u_info_tip").show()
				}, function() {
					e("#u_info_tip").hide()
				}), void 0 != e("body").data(l) && "" != e("body").data(l) ? (e("#u_info_tip").html(e("body").data(l)), e("#u_info_tip .tip_arrow").css("margin-left", c + "px"), 0 == e("#u_info_tip .medal_a").size() && e("#u_info_tip").css({
					top: p.top - 145 + "px",
					left: o + "px"
				})) : i = setTimeout(function() {
					e.ajax({
						url: "/card/user",
						type: "POST",
						timeout: 6e4,
						data: {
							uname: l,
							groupId: r
						},
						dataType: "json",
						success: function(r) {
							if (null == r) clearTimeout(a), clearTimeout(i), e("#u_info_tip .tip_info p").eq(1).text(MGLANG.msgTimeout), e("#u_info_tip").hide();
							else {
								var s = r.status.code,
									n = r.status.msg;
								if (1001 == s) {
									var d = r.result.data.user,
										u = t,
										m = r.result.data.adminurl,
										g = r.result.data.gadminurl,
										_ = '<div style="display:inline"  class="followdiv" type="all" uid="{userId}"><a href="javascript:void(0);" class="addfo">+加关注</a></div>',
										v = '<a href="/infocenter/privatemsg/write/{userId}" target="_blank">发私信</a>',
										f = '<a target="_blank" href="' + m + '">进入管理页面</a>',
										h = "";
									"undefined" != typeof g && null != g && (h = '<a target="_blank" href="' + g + '">去管理' + (1 == d.sex ? "他" : "她") + "</a>");
									var b = d.avatar,
										x = d.cfans,
										y = d.cgoods,
										w = d.cfaved,
										k = d.member_user,
										j = (d.darenLevelTitle, d.darenMax, d.daren_img_src),
										T = d.daren_img_title,
										I = "";
									if ("" != j) var I = "<img src='" + j + "' title='" + T + "' />";
									if (1 == k) var I = "<img src='/img/new_xiaoxian_s.png' />";
									else if (2 == k) var I = "<img src='/img/new_xiaoxia_s.png' />";
									var q = void 0 == d.medal ? "" : d.medal,
										O = "";
									for (var G in q) {
										var M = q[G];
										M && void 0 != M && void 0 != M.honorId && (O += '<a href="/honor/show/1/my/{userId}?honorId=' + M.honorId + '" target="_blank" ><img src="/img/medal/' + M.honorId + '/16.jpg" alt="' + M.title + '" title="' + M.title + '"></a>')
									}
									"" != O && (O = '<div class="medal_a">' + O + "</div>");
									var L = d.introduce;
									(null == L || "" == MGTOOL.trim(L)) && (L = "<span>这颗小蘑菇真懒啊，连自我介绍都不写。</span>");
									var U = d.userId,
										z = d.expertin,
										P = "";
									P = "" != z ? z : d.province + " " + d.city, "" == P && (P = "&nbsp;");
									var N = d.groupLevel;
									switch (N) {
										case 1:
											N = '<a class="ulevel level1" href="http://www.mogujie.com/group/topic/1nn6s?f=grp20130327groupst" target="_blank"></a>';
											break;
										case 2:
											N = '<a class="ulevel level2" href="http://www.mogujie.com/group/topic/1nn6s?f=grp20130327groupst" target="_blank"></a>';
											break;
										case 3:
											N = '<a class="ulevel level3" href="http://www.mogujie.com/group/topic/1nn6s?f=grp20130327groupst" target="_blank"></a>';
											break;
										case 4:
											N = '<a class="ulevel level4" href="http://www.mogujie.com/group/topic/1nn6s?f=grp20130327groupst" target="_blank"></a>';
											break;
										case 5:
											N = '<a class="ulevel level5" href="http://www.mogujie.com/group/topic/1nn6s?f=grp20130327groupst" target="_blank"></a>';
											break;
										case 6:
											N = '<a class="ulevel level6" href="http://www.mogujie.com/group/topic/1nn6s?f=grp20130327groupst" target="_blank"></a>';
											break;
										case 7:
											N = '<a class="ulevel level7" href="http://www.mogujie.com/group/topic/1nn6s?f=grp20130327groupst" target="_blank"></a>';
											break;
										default:
											N = ""
									}
									var A = r.result.data.isMyfollow,
										E = r.result.data.isMyfans,
										F = r.result.data.eachother,
										R = r.result.data.isadmin,
										B = r.result.data.isgadmin,
										C = r.result.data.msgPrivate,
										Q = r.result.data.user.level,
										S = r.result.data.user.isBlack,
										D = "";
									r.result.data.isself ? D = "自己都不认识了？" : (D += F ? '<div style="display:inline"  class="followdiv" type="all" uid="{userId}"><span class="fl addall">已互相关注</span><a href="javascript:;" class="unfollow">取消</a></div>' : A ? '<div style="display:inline"  class="followdiv" type="all" uid="{userId}"><span class="fl add_ok">已关注</span><a href="javascript:;" class="unfollow">取消</a></div>' : "", A || (D += _), (R || 0 == C && E || 1 == C) && (D += v), R && (D += f), B && (D += h)), u = u.replace(/{avatar}/, b).replace(/{url}/g, U).replace(/{name}/g, l).replace(/{grouplevel}/, N).replace(/{address}/, P).replace(/{fans}/, x).replace(/{goods}/, y).replace(/{medal}/, O).replace(/{intro}/, L).replace(/{toolbar}/, D).replace(/{userId}/g, U).replace(/{faved}/g, w).replace(/{bz}/g, I), u = u.replace(/{level}/g, Q), u = S ? u.replace(/{black}/g, "black_") : u.replace(/{black}/g, ""), e("#u_info_tip").html(u), 0 == e("#u_info_tip .medal_a").size() && e("#u_info_tip").css({
										top: p.top - 145 + "px",
										left: o + "px"
									}), e("#u_info_tip .tip_arrow").css("margin-left", c + "px"), e("body").data(l, u), clearTimeout(a)
								} else e("#u_info_tip .tip_info p").eq(1).text(n)
							}
						},
						error: function(t, l) {
							clearTimeout(a), clearTimeout(i), "timeout" == l && e("#u_info_tip .tip_info p").eq(1).text(MGLANG.msgTimeout), e("#u_info_tip").hide()
						}
					})
				}, 500)
			}
		}), l.live("mouseleave", function() {
			clearTimeout(a), clearTimeout(i), a = setTimeout(function() {
				e("#u_info_tip").hide()
			}, 500)
		})
	}, MOGU.Globe_UserInfo_Tip_Init()
}(jQuery);
! function(a) {
	var b = '<div id="star_info_tip"><div class="tip_info"></div><i class="tip_arrow"></i></div>',
		c = '<img class="loading" src="/img/loading.gif"><p class="notice_text fl mt20">获取达人信息</p>',
		d = '<h3 class="star_rank">达人等级</h3>{ranklist}<a href="http://www.mogujie.com/daren" target="_blank" class="want_apply">我也要申请</a>',
		e = null,
		f = null,
		g = [],
		h = {
			init: function() {
				a("#star_info_tip").length ? a("#star_info_tip .tip_info").empty() : a("body").append(b), a("body").on("mouseover", "#star_info_tip", function() {
					e && clearTimeout(e), a(this).show()
				}), a("body").on("mouseout", "#star_info_tip", function() {
					a(this).hide()
				}), this.tipWrap = a("#star_info_tip"), this.tip = this.tipWrap.find(".tip_info"), this.addEvent()
			},
			addEvent: function() {
				var b = this;
				a("body").on("mouseenter", ".starcard", function() {
					e && clearTimeout(e), f && clearTimeout(f);
					var h = a(this),
						i = h.data("uid");
					if (b.tipWrap.hide(), b._firgerPos(h), g[i]) {
						var j = d.replace(/{ranklist}/, g[i]);
						return b.tip.html(j), MOGU.is_sign_daren && a("#star_info_tip .star_rank").html("达人等级 | 签约达人"), e = setTimeout(function() {
							b.tipWrap.show()
						}, 200), void 0
					}
					b.tip.html(c), e = setTimeout(function() {
						b.tipWrap.show()
					}, 200), b._getData({
						userId: i
					}, function(c) {
						g[i] = c.html;
						var e = d.replace(/{ranklist}/, g[i]);
						b.tip.html(e), c.is_sign_daren && (MOGU.is_sign_daren = !0, a("#star_info_tip .star_rank").html("达人等级 | 签约达人"))
					})
				}), a("body").on("mouseleave", ".starcard", function() {
					e && clearTimeout(e), f && clearTimeout(f), e = setTimeout(function() {
						b.tipWrap.hide()
					}, 500)
				})
			},
			_getData: function(b, c) {
				f = setTimeout(function() {
					a.ajax({
						url: "/daren/ajaxTag",
						type: "POST",
						dataType: "json",
						data: b,
						success: function(a) {
							var b = a.status.code;
							1001 == b ? "function" == typeof c && c(a.result) : alert(a.status.msg)
						}
					})
				}, 500)
			},
			_firgerPos: function(a) {
				var b = a.offset(),
					c = b.top - this.tipWrap.outerHeight(),
					d = b.left;
				this.tipWrap.css({
					top: c,
					left: d
				})
			}
		};
	h.init()
}(jQuery);
! function(t) {
	MGTEMPLATE.favTip_ok = '<div id="fav_tip" class="fav_tip"><div class="fok"><a href="javascript:;" onclick="MOGU.Fav_Reason_Add_Init(\'{tid}\',\'{editid}\',\'{favid}\',\'{where}\')">再给个评论吧~</a></div></div>', MGTEMPLATE.favTip_had = '<div id="fav_tip" class="fav_tip"><div class="ffail"><span>喜欢过了</span><a href="javascript:;" onclick="MOGU.Favorite_Del(\'{tradeitemid}\',\'{twitterid}\')">删掉</a></div></div>', MGTEMPLATE.favTip_me = '<div id="fav_tip" class="fav_tip"><div class="ffail">这是你自己的哦</div></div>', MGTEMPLATE.favForward = '<p class="fw_root">{rootTweet}</p><div class="fw_pub_area"><div class="fwpa_tool"><a href="javascript:;"><img class="fl add_face" style="margin-top:5px" w="fw" src="/img/add_face_c.png"></a><span class="fw_count">还可以输入<b>140</b>个汉字</span></div><textarea class="fw_content">{tweet}</textarea><div class="fw_submit_box">{is_forword_root_tweet}<div class="sub_div" rtid="{rtid}"><a href="javascript:;" class="fw_submit"><img src="/img/confirm_btn.png"></a><a class="fw_cancel" href="javascript:;">取消</a></div></div></div>', MOGU.Favorite_Tweet_Add_Init = function() {
		t(".t_f").live({
			mouseenter: function() {
				t(this).find(".tl .fav").hasClass("fav_no") && t(this).find(".tl .fav").show()
			},
			mouseleave: function() {
				t(this).find(".tl .fav").hasClass("fav_no") && t(this).find(".tl .fav").hide()
			}
		}), t(".t_f .add_fav").live("click", function() {
			if ("" == MOGUPROFILE.userid) {
				MOGU.user_handsome_login_init();
				var e = t(this),
					a = {
						callback: function() {
							e.show(), e.click()
						}
					};
				MOGU.user_handsome_login(!1, a)
			} else MOGU.Favorite_Add_Submit(this)
		})
	}, MOGU.Favorite_Add_Submit = function(e) {
		if (1 != t(e).data("submit")) {
			t(e).data("submit", 1), t("#fav_tip").remove(), t("#fav_yaya").remove();
			var a = e,
				i = t(a).parents(".t_f"),
				o = i[0].id.replace("tk_", ""),
				r = t(i[0]).attr("tid"),
				s = "我喜欢这个，谢谢你的分享[心]",
				l = {
					twitterid: r,
					content: s,
					local: MOGUPROFILE.local,
					favtype: !1
				};
			if (i.find(".inf .n").text(), i.find(".q")[0]) {
				l.favtype = !0;
				var f = i.find(".q"),
					n = f.attr("qtid");
				l.rootRetweetId = n
			}
			var d = t(e).offset(),
				v = '<div id="fav_yaya" class="fav_yaya"></div>';
			t("body").append(v), t("#fav_yaya").css({
				top: d.top + "px",
				left: d.left + 10 + "px"
			}).floatUp({
				time: 500
			}), t.ajax({
				url: "/collect/favtwitter",
				type: "POST",
				timeout: 6e4,
				data: l,
				dataType: "json",
				success: function(i) {
					if (null == i) alert(MGLANG.msgTimeout);
					else {
						var s = i.status.code,
							l = i.status.msg,
							f = t(a).offset(),
							n = !1;
						if (1001 == s) {
							tip_html = MGTEMPLATE.favTip_ok.replace(/{tid}/g, r).replace(/{editid}/g, i.result.data.tid).replace(/{tradeitemid}/g, i.result.data.tradeitemid).replace(/{where}/g, "feed"), n = !0;
							var d = i.result.data.cfav;
							t("#tk_" + o + " .tl .favDiv")[0] ? t("#tk_" + o + " .tl .favCount").text(d) : t("#tk_" + o + " .tl .add_fav").after('<div class="favDiv"><a class="favCount" target="_blank" href="/note/' + o + '">1</a><i></i></div>'), t("#tk_" + o + " .tl .fav").removeClass("fav_no")
						} else if (2222 == s) {
							i.result.captcha;
							var v = {
									title: "验证码",
									lightBoxId: "favcheckbox",
									scroll: !0,
									isBgClickClose: !1
								},
								c = new MGLightBox(v);
							c.init(), t("check_sure").click(function() {
								var a = {};
								if (!MOGU.imgCodeCheck()) return t("#favcheckbox .login_fail").text("请旋转验证码图片到正确方向!").css("visibility", "visible"), !1;
								var i = [],
									o = 0;
								t("#favcheckbox input[name='check[]']").each(function() {
									i[o] = t(this).val(), o++
								}), a.check = i, t.post("/pcaptcha/valid/fav", a, function(a) {
									1001 == a.status.code ? (c.remove(), e.click()) : t("#favcheckbox .login_fail").text("请旋转验证码图片到正确方向!").css("visibility", "visible")
								})
							})
						} else if (6002 == s) tip_html = MGTEMPLATE.favTip_had.replace(/{tradeitemid}/g, i.result.data.tradeitemid).replace(/{twitterid}/g, o), n = !0;
						else if (6003 == s) tip_html = MGTEMPLATE.favTip_me.replace(/{uid}/g, MOGUPROFILE.userid), n = !0;
						else if (2034 == s) {
							n = !1;
							var _ = i.result.data.favs;
							if (_ = parseInt(_) + 1, 5 > _) {
								var u = "";
								1 == _ ? u = "http://www.mogujie.com/book/shoes/" : 2 == _ ? u = "http://www.mogujie.com/book/bags/" : 3 == _ ? u = "http://www.mogujie.com/book/accessories/" : 4 == _ && (u = "http://www.mogujie.com/book/home/");
								var v = {
										title: "第二步：喜欢有奖",
										lightBoxId: "lb_jifenbao_second_step_two",
										scroll: !0,
										isBgClickClose: !1,
										contentHtml: '<div class="all_main"><div class="prompt">您已经喜欢了第' + _ + "件宝贝，去挑第" + (_ + 1) + '件吧。</div><div class="go_register"><a href="' + u + '">&nbsp;</a></div></div>'
									},
									p = new MGLightBox(v);
								p.init()
							} else {
								var v = {
										title: "第二步：喜欢有奖",
										lightBoxId: "lb_jifenbao_second_step_three",
										scroll: !0,
										isBgClickClose: !1,
										contentHtml: '<div class="all_main"><div class="prompt">恭喜您完成蘑菇街喜欢宝贝步骤，您将获得15个集分宝</div><div class="go_register"><a href="/webapp/jifenbao">&nbsp;</a></div></div>'
									},
									m = new MGLightBox(v);
								m.init()
							}
						} else alert(l);
						if (n) {
							t("body").append(tip_html), setTimeout(function() {
								t("#fav_tip").css({
									top: f.top - 25 - 71 + "px",
									left: f.left - 15 + "px"
								}).show()
							}, 500);
							var w = setTimeout(function() {
								t("#fav_tip,#fav_yaya").remove()
							}, 5e3);
							t("#fav_tip,#fav_yaya").hover(function() {
								clearTimeout(w), t("#fav_tip,#fav_yaya").show()
							}, function() {
								clearTimeout(w), w = setTimeout(function() {
									t("#fav_tip,#fav_yaya").remove()
								}, 5e3)
							})
						}
					}
				},
				error: function(t, e) {
					"timeout" == e && alert(MGLANG.msgTimeout)
				},
				complete: function() {
					setTimeout(function() {
						t(a).removeData("submit")
					}, 4e3)
				}
			})
		}
	}, MOGU.Favorite_Del = function(e, a) {
		t("#fav_tip,#fav_yaya").remove(), t.ajax({
			url: "/collect/delfav",
			type: "POST",
			timeout: 6e4,
			data: {
				tradeitemid: e,
				twitterid: a
			},
			dataType: "json",
			success: function(e) {
				if (null == e) alert(MGLANG.msgTimeout);
				else {
					var i = e.status.code,
						o = e.status.msg;
					if (1001 == i) {
						var r = e.result.data.cfav,
							s = e.result.data.userid;
						null != r && 0 != r ? t(".i_w_f[tid=" + a + "]")[0] ? (t(".i_w_f[tid=" + a + "] .favCount").text(r), t("div.new_fav a[aid=" + a + "]").slideUp(1e3, function() {
							t("div.new_fav a[aid=" + a + "]").remove()
						})) : t("#tk_" + a)[0] ? (t("#tk_" + a + " .u_like").remove(), t("#tk_" + a + " .tl .favCount").text(r), t("#tk_" + a + " .tl").after(e.result.html)) : t("#topitter_" + a)[0] ? (t("#topitter_" + a + " .u_like").remove(), t("#topitter_" + a + " .favDiv .favCount").text(r), t(".wb_infobar").after(e.result.html)) : t("#style_" + a + " .nwl_img .fav_" + s)[0] ? (t("#style_" + a + " .nwl_img .fav_" + s).parent().remove(), t("#style_" + a + " .nwl_cfav").find("span").text(r)) : t(".nwl_img .fav_" + s)[0] && (t(".nwl_img .fav_" + s).parent().remove(), t(".note_who_like").find("span").find("span").text(r)) : t(".i_w_f[tid=" + a + "]")[0] ? (t(".i_w_f[tid=" + a + "] .favDiv").remove(), t("div.new_fav a[aid=" + a + "]").slideUp(1e3, function() {
							t("div.new_fav a[aid=" + a + "]").remove()
						})) : t("#tk_" + a)[0] ? (t("#tk_" + a + " .tl .favDiv").remove(), t("#tk_" + a).removeClass("favt"), t("#tk_" + a + " .u_like").remove(), t("#tk_" + a + " .tl").after(e.result.html)) : t("#topitter_" + a)[0] ? (t("#topitter_" + a + " .favDiv").remove(), t("#topitter_" + a + " .u_like").remove(), t("#topitter_" + a + " .tl").after(e.result.html)) : t("#style_" + a + " .nwl_img")[0] ? (t("#style_" + a + " .nwl_img").remove(), t("#style_" + a + " .nwl_cfav").remove()) : t(".nwl_img")[0] && (t(".nwl_img").remove(), t(".note_who_like").find("span").remove())
					} else alert(o)
				}
			},
			error: function(t, e) {
				"timeout" == e && alert(MGLANG.msgTimeout)
			}
		})
	}, MOGU.Fav_Reason_Add_Init = function(e, a, i, o) {
		t("#fav_tip,#fav_yaya").remove();
		var r = "lb_forward",
			s = {
				title: "给喜欢加个评论",
				lightBoxId: r,
				ajax: !0,
				scroll: !0,
				isBgClickClose: !1
			},
			l = new MGLightBox(s);
		if (l.init(), "feed" == o) {
			var f = t('.t_f[tid="' + e + '"]'),
				n = e,
				d = {
					retweetId: n,
					isfav: 1
				},
				v = f.find(".inf .n").text();
			if (f.find(".q")[0]) {
				var c = f.find(".q"),
					_ = c.attr("qtid");
				d.rootRetweetId = _;
				var u = c.find(".sms .n").text().replace(/@/, "")
			}
		} else if ("topic" == o) var f = t(".topic_info .u_name"),
			n = e,
			d = {
				retweetId: n,
				isfav: 1
			},
			v = f.text();
		else if ("book" == o) var n = e,
			f = t('.i_w_f[tid="' + n + '"]').find(".tk"),
			d = {
				retweetId: n,
				isfav: 1
			},
			v = f.find(".n").text();
		else if ("note" == o) {
			var n = e,
				f = t("#note_" + n),
				d = {
					retweetId: n,
					isfav: 1
				},
				v = f.find(".note_profile").find(".name").text();
			if (f.find(".q")[0]) {
				var c = f.find(".q"),
					_ = c.attr("qtid");
				d.rootRetweetId = _;
				var u = c.find(".sms .n").text().replace(/@/, "")
			}
		} else if ("notenoall" == o) {
			var n = e,
				f = t("#note_" + n),
				d = {
					retweetId: n,
					isfav: 1
				},
				v = f.find(".note_profile").find(".name").text();
			if (f.find(".q")[0]) {
				var c = f.find(".q"),
					_ = c.attr("qtid");
				d.rootRetweetId = _;
				var u = c.find(".sms .n").text().replace(/@/, "")
			}
		}
		t.ajax({
			url: "/twitter/startforward?fr=fav",
			type: "POST",
			timeout: 6e4,
			data: d,
			dataType: "json",
			success: function(o) {
				if (null == o) alert(MGLANG.msgTimeout);
				else {
					var r = o.status.code,
						s = o.status.msg;
					if (1001 == r) {
						var f = o.result.data.rootTweet,
							d = o.result.data.tweet,
							c = "";
						u && (c = '<input type="checkbox" id="fw_root_tweet" checked rrtid="' + _ + '"/><label for="fw_root_tweet">同时评论给原文作者 ' + u + "</label><br>");
						var p = MGTEMPLATE.favForward.replace(/{rtid}/, n).replace(/{tweet}/, d).replace(/{rootTweet}/, f).replace(/{tweet_name}/, v).replace(/{is_forword_root_tweet}/, c);
						l.buildContent(p);
						var m = l.getBoxFrame();
						m.find(".fw_cancel").click(function() {
							l.close()
						});
						var w = m.find(".fw_content");
						if (w[0])
							if (w[0].createTextRange) {
								var h = w[0].createTextRange();
								h.moveStart("character", 0), h.collapse(), h.select()
							} else w[0].setSelectionRange(0, 0), w.focus();
						var g = function() {
							var t = MGTOOL.getMsgLength(w.val()),
								e = m.find(".fw_count b");
							0 == t ? (e.text(140), e.css("color", "#690")) : (e.text(140 - t), t > 140 ? e.css("color", "#F92D09") : e.css("color", "#690"))
						};
						g(), w.bind("keyup", g).bind("input", g).bind("propertychange", g), MOGU.Globe_Textarea_Auto_Height(w);
						var b = null;
						try {
							b = t("#topic_head").attr("tpcid")
						} catch (k) {}
						var T = m.find(".fw_submit");
						T.click(function() {
							MOGU.Fav_Reason_Add_Submit(e, a, i, b, l)
						}), MOGU.Globe_Bind_Keybord_Submit(w, T, "not_need_focus")
					} else alert(s), l.close()
				}
			},
			error: function(t, e) {
				"timeout" == e && alert(MGLANG.msgTimeout), l.close()
			}
		})
	}, MOGU.Fav_Reason_Add_Submit = function(e, a, i, o, r) {
		var s = r.getBoxFrame(),
			l = s.find(".fw_content").val();
		if ("" == l) return alert("请输入转发内容"), void 0;
		if (MGTOOL.getMsgLength(l) > 140) return alert("转发内容超过140个字了。"), void 0;
		var f = t(".sub_div").attr("rtid"),
			n = t("#fw_tweet").prop("checked"),
			d = {
				topicId: o,
				retweetId: f,
				content: l,
				isReply: n,
				editid: a,
				favid: i,
				local: MOGUPROFILE.local
			};
		if (t(".note_comment_wrap").size() > 0) {
			var v = t.parseJSON(t(".note_content").attr("data"));
			t.extend(d, v)
		}
		t("#fw_root_tweet")[0] && (d.rootRetweetId = t("#fw_root_tweet").attr("rrtid"), d.isReplyRoot = t("#fw_root_tweet").prop("checked")), t.ajax({
			url: "/twitter/editfav",
			type: "POST",
			timeout: 6e4,
			data: d,
			dataType: "json",
			success: function(t) {
				if (null == t) alert(MGLANG.msgTimeout);
				else {
					var e = t.status;
					if (void 0 == e || null == e) return alert(MGLANG.msgTimeout), void 0;
					var a = e.code,
						i = e.msg;
					1001 == a ? r.success_close("发送成功", 800) : (alert(i), r.close())
				}
			},
			error: function(t, e) {
				"timeout" == e && alert(MGLANG.msgTimeout), r.close()
			}
		})
	}, MOGU.Favorite_Tweet_Add_Init()
}(jQuery);